<?php

namespace app\common\validate;

use think\Validate;

class AgentDeliveryMoneyOne extends Validate
{
	protected $rule = [
		"money" => "require|gt:0",
		"agent_id" => "require",
	];

	protected $message = [


		"money.require" => "请输每公里价格",
		"money.gt" => "每公里价格数必须大于0",

		"agent_id.require" => "请选择代理商",
	];
	protected $scene = [
		'add' => ['money','agent_id'],
		'edit' => ['money','agent_id'],
	];
}
